# -*- coding: utf-8 -*-
"""
Created on Tue Jan  2 14:14:53 2018

@author: Luther
"""

import os

path = input("Please input:")
x = os.listdir(path)
with open("D:\\names.csv", "w") as f:
    for each in x:
        f.write(each)
        f.write("\n")
